home *** CD-ROM | disk | FTP | other *** search
- Path: paulg53.escape.com!user
- From: paulg53@escape.com (Paul A. Gusmorino)
- Newsgroups: comp.lang.c++
- Subject: Derived Class Woes
- Date: Mon, 01 Apr 1996 09:29:47 -0500
- Organization: PAG3 Software
- Message-ID: <paulg53-0104960929470001@paulg53.escape.com>
- NNTP-Posting-Host: paulg53.escape.com
-
- I'm having trouble with some code I'm writing. All the class and member
- function names have been changed to protect the innocent, but the prblem
- is real :-) I have a class, let's call it TApp. TApp has two member
- functions Run and DoSomething. Run is just a big loop that keeps calling
- DoSomething until the user quits. I've derived a class from TApp called
- MyApp. In MyApp I've written a new DoSomething. My problem is that when I
- call MyApp's Run (which was inherited from TApp), then it calls TApp's Run
- and NOT MyApp's Run. Is there a way to solve the problem?
-
- Thanks a million,
- Paul A. Gusmorino 3rd <paulg53@escape.com>
-